#ifndef __BSP_KEY_H__
#define __BSP_KEY_H__

#include "gpio.h"

#define key_state_0        0
#define key_state_1        1  
#define key_state_2        2 

#define KEY1_PRESSED (Gpio_GetInputIO(EVB_KEY1_PORT, EVB_KEY1_PIN) == FALSE)
#define KEY2_PRESSED (Gpio_GetInputIO(EVB_KEY2_PORT, EVB_KEY2_PIN) == FALSE) 
#define KEY3_PRESSED (Gpio_GetInputIO(EVB_KEY3_PORT, EVB_KEY3_PIN) == FALSE) 
#define KEY4_PRESSED (Gpio_GetInputIO(EVB_KEY4_PORT, EVB_KEY4_PIN) == FALSE)   
#define KEY5_PRESSED (Gpio_GetInputIO(EVB_KEY5_PORT, EVB_KEY5_PIN) == FALSE)  

#define KEY_TOTALS   5

void BSP_Key_Init(void);
uint8_t Key_read(void);
void Key_scan(void);

#endif


